package com.example.springboot_shiro.dao;

import com.example.springboot_shiro.entity.Pers;
import com.example.springboot_shiro.entity.Role;
import com.example.springboot_shiro.entity.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface UserDao {
    void save(User user);

    User findByUserName(String username);
    //根据用户名查询所有角色
 User findRolesByUserName(String username);
 //根据角色id查询权限信息方法
    List<Pers> findPersByRoleId(String id);
}
